Skip to content

#ilex-116 - Post new ontology#110

Merged
ddelpiano merged 10 commits intodevelfrom
feature/ILEX-116
Jun 13, 2025
Merged

#ilex-116 - Post new ontology#110
ddelpiano merged 10 commits intodevelfrom
feature/ILEX-116

Conversation

@jrmartin
Copy link

This pull request introduces several new features and enhancements, primarily focused on ontology creation, file import functionality, and UI improvements. The most significant changes include the addition of new API endpoints for ontology creation and token retrieval, updates to the AddNewOntologyDialog component to support file-based ontology creation, and UI refinements across multiple components.

API Enhancements

  • New API endpoints for ontology management:
    • Added createNewOntology, getNewTokenApi, and retrieveTokenApi functions in src/api/endpoints/apiService.ts to enable ontology creation and token retrieval. These endpoints handle POST and GET requests with appropriate headers and data structures.

Ontology Creation Features

  • Enhanced AddNewOntologyDialog component:
    • Integrated file-based ontology creation with support for JSON and CSV file formats, using the ImportFileTab component. Added state management for files, URL, and tab selection. [1] [2] [3] [4]
    • Implemented logic for submitting ontology creation requests, including token retrieval and handling responses (success or failure). Updated the status dialog to display dynamic messages based on the creation result. [1] [2]

UI Improvements

  • Updated OrganizationsList component:
    • Refined the organization list UI with improved alignment, spacing, and hover effects. Removed unnecessary links and added rounded borders for better aesthetics. [1] [2]
  • Enhanced StatusDialog component:
    • Added error state handling with a new background pattern (StatusErrorBackgroundPattern) for failed operations. Updated prop types to include an errored flag. [1] [2] [3] [4] [5]

File Import Functionality

  • Improved file import capabilities:
    • Updated ImportFile component to support .json files alongside .csv. Added logic to parse JSON files and handle invalid content gracefully.

These changes collectively enhance the application's ontology management capabilities, improve user experience, and streamline the UI for better usability.

@jrmartin jrmartin requested a review from Copilot June 11, 2025 17:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements new API endpoints for ontology creation and enhances the ontology creation UI, including file import support and updated status dialogs, while also refining the organization and fork components.

  • Added new endpoints for creating ontologies and retrieving tokens in the API service.
  • Enhanced the AddNewOntologyDialog component with file and URL handling, along with UI tab switches between manual input and file import.
  • Updated several UI components (OrganizationsList, StatusDialog, CreateForkDialog) to improve consistency and user experience.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vite.config.js Added new proxy configuration and logging for ontology spec requests.
src/config.js Introduced new API endpoint keys for ontology and token management.
src/components/organizations/index.jsx Updated UI styling and user condition checks.
src/components/common/StatusDialog.jsx Enhanced dialog to conditionally render an error state background.
src/components/common/OrganizationsList.jsx Refactored layout and navigation logic for organizations.
src/components/TermEditor/ImportFile.jsx Extended file input acceptance to include JSON files.
src/components/SingleOrganization/index.jsx Temporarily commented out fetchData call.
src/components/SingleOrganization/CreateForkDialog.jsx Removed unused state and commented-out API call code.
src/components/SingleOrganization/AddNewOntologyDialog.jsx Added file import and tab navigation for ontology creation along with improved status handling.
src/api/endpoints/apiService.ts New API functions for ontology creation and token retrieval added.

jrmartin and others added 3 commits June 11, 2025 10:35
#116 - removing unused fetchdata call

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Remove

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@ddelpiano ddelpiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this since the html parsing will be tackled as technical debt in another card ILEX-125, but all the rest looks good and this will allow us to move forward with the active ontologies flow.

@ddelpiano ddelpiano merged commit 9d0c993 into devel Jun 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants